#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>

int main()
{
    chdir("/home/whb/111");

    FILE *fp = fopen("log.txt", "w");
    (void)fp; // ingor warning
    fclose(fp);

    while(1)
    {
        printf("I am a process, pid: %d\n", getpid());
        sleep(1);
    }

    return 0;
}

